import javax.sql.DataSource;
import java.sql.Connection;
import java.sql.SQLException;

/**
 * PACKAGE_NAME
 * User: xlh
 * Date: 2024/12/30 18:27
 * motto:推到高塔
 * Description:
 * Version: V1.0
 */
public class TestDataSource {
    public static void main(String[] args) throws SQLException {
        //向上转型
        DataSource dataSource=new XlhDataSource();
        //获取连接
        Connection connection = dataSource.getConnection();
        Connection connection2 = dataSource.getConnection();
        System.out.println(connection);
        System.out.println(connection2);
    }

}
